class CreateCharacterClasses < ActiveRecord::Migration
  def self.up
    create_table :character_classes do |t|
      t.column :name, :string, :null => false
    end

    [ "Druid", "Hunter", "Mage", "Paladin", "Priest", "Rogue", "Shaman", "Warlock", "Warrior" ].each { |c|
      CharacterClass.create :name => c
    }
  end

  def self.down
    drop_table :character_classes
  end
end
